#ifndef GROUP_H
#define GROUP_H

#include "groupuser.hpp"
#include <string>
#include <vector>

/**
 * @brief 群组类
 *
 */
class Group
{
public:
    Group(int id = -1, string name = "", string desc = "")
    {
        this->id = id;
        this->name = name;
        this->desc = desc;
    }
    void setId(int id)
    {
        this->id = id;
    }
    int getId()
    {
        return id;
    }
    void setName(string name)
    {
        this->name = name;
    }
    string getName()
    {
        return name;
    }
    void setDesc(string desc)
    {
        this->desc = desc;
    }
    string getDesc()
    {
        return desc;
    }
    vector<GroupUser> &getUsers()
    {
        return users;
    }

private:
    int id;                  // 群id号
    string name;             // 群名
    string desc;             // 群描述
    vector<GroupUser> users; // 群成员
};

#endif